
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>积分商城</title>
    <meta http-equiv="description" content=""/>
    <meta http-equiv="keywords" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no"/>
<link rel="stylesheet" type="text/css" href="{{ URL::asset('newstyle/css/drink.css') }}" />

</head>

<body>
<nav class="nav">
    <img src="{{ URL::asset('newstyle/images/nav.png') }}" alt="" width="100%">
</nav>
<div class="storecenter">
    <p>当前积分:{{ $customer->all_points-$customer->use_points }}</p>
    <a href="{{ route('customers.normal') }}">
        <img src="{{ URL::asset('newstyle/images/storeicon1.png') }}" alt="" width="14" align="absmiddle">积分明细
    </a>
    <a href="{{ route('buyrecords.index') }}">
        <img src="{{ URL::asset('newstyle/images/storeicon.png') }}" alt="" width="14"  align="absmiddle">商城订单
    </a>
</div>
<div class="storeGift cl">
    <ul>
        <li>
            <a href="{{ route('commodities.index',array('tab'=>0)) }}">
                <img src="{{ URL::asset('newstyle/images/store6.png') }}" alt="" width="60">
                <p>新奇小物</p>
            </a>
        </li>
        <li>
            <a href="{{ route('commodities.index',array('tab'=>1)) }}">
                <img src="{{ URL::asset('newstyle/images/store5.png') }}" alt="" width="60">
                <p>奢华大礼</p>
            </a>
        </li>
        <li>
            <a href="{{ route('commodities.index',array('tab'=>2)) }}">
                <img src="{{ URL::asset('newstyle/images/store4.png') }}" alt="" width="60">
                <p>现金券</p>
            </a>
        </li>
        <li>
            <a href="{{ route('commodities.index',array('tab'=>3)) }}">
                <img src="{{ URL::asset('newstyle/images/store3.png') }}" alt="" width="60">
                <p>旅游度假</p>
            </a>
        </li>
        <li>
            <a href="{{ route('commodities.index',array('tab'=>4)) }}">
                <img src="{{ URL::asset('newstyle/images/store2.png') }}" alt="" width="60">
                <p>品牌</p>
            </a>
        </li>
        <li>
            <a href="{{ route('commodities.index',array('tab'=>5)) }}">
                <img src="{{ URL::asset('newstyle/images/store1.png') }}" alt="" width="60">
                <p>服务</p>
            </a>
        </li>
    </ul>
</div>
<div class="storeList">
    <ul>
        @foreach($commoditytabs as $val)
        <li>
            <a href="{{ route('commodities.show',$val->commodity->id) }}">
                <img src="{{ $PATH }}{{ $val->commodity->cover }}" alt="" width="80" class="spimg">
                <p class="descri">{{ $val->commodity->name }}</p>
                <p><span>积分<em>{{ $val->commodity->member_points  }}</em></span></p>
            </a>
            <a href="{{ route('commodities.show',$val->commodity->id) }}" class="exchange">兑换</a>
        </li>
        @endforeach
    </ul>
</div>
</body>
</html>
